package com.atguigu.gulimail.product.Feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimail.product.vo.SkuStock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Component
@FeignClient("gulimail-ware")
public interface WareFeignService {

    @RequestMapping("ware/waresku/hasstock")
    List<SkuStock> getSkuHasStock(@RequestBody List<Long> skuId);

}
